US President Donald Trump reversed his own policy over the separation of undocumented parents and children.